home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
COMM
/
SCR104A.ARJ
/
INSTALL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1991-12-26
|
3KB
|
105 lines
CLS
%a := "Y"
%done := FALSE
While not %done
Ask "Install Help System? (Y/N) " %a 1 1 Y
$caps %a
%done := $eq(%a,"Y") | $eq(%a,"N")
EndWhile
If $eq(%a,"Y")
ChDir %%help
IF error
Message "Creating new directory - %%help^M^J^M^J"
MkDir %%help
If Error
Message "Unable to create directory %%help. Press a key when ready."
CurOff
GetKey %a %b
Stop
Else
ChDir %%help
EndIf
EndIf
%exists := GetFirst *.
If %exists
Message "Deleting old Help files.^M^J^M^J"
While %exists
Erase %SysName
%exists := GetNext
EndWhile
EndIf
Message "Unpacking Help files. Press a key when ready.^M^J^M^J"
CurOff
GetKey %a %b
CurOn
Shell ..\SCRHELP
If Error
Message "Failed to install Scripta HELP.^M^J^M^J"
Else
Message "Scripta Help installed successfully.^M^J^M^J"
EndIf
ChDir ..
EndIf
%a := "Y"
%done := FALSE
While not %done
%done := TRUE
Ask "Unpack sample .CFG files? (Y/N) " %a 1 1 %a
$caps %a
If $eq(%a,"Y")
Shell SCRCFG
If Error
Message "Failed to install sample .CFG files.^M^J^M^J"
Else
Message "Sample .CFG files installed successfully.^M^J^M^J"
EndIf
Elsif $ne(%a,"N")
%done := FALSE
EndIf
EndWhile
%a := "Y"
%done := FALSE
While not %done
%done := TRUE
Ask "Install sample Dialling Directory? (Y/N) " %a 1 1 %a
$caps %a
If $eq(%a,"Y")
If Exists scripta.dir
Erase scripta.dir
EndIf
Rename scripta.ddd *.dir
If Error
Message "Failed to rename SCRIPTA.DDD to SCRIPTA.DIR.^M^J^M^J"
Else
Message "Sample Dialling Directory installed successfully.^M^J^M^J"
EndIf
Elsif $ne(%a,"N")
%done := FALSE
EndIf
EndWhile
%a := "Y"
%done := FALSE
While not %done
%done := TRUE
Ask "Install sample Abbreviations File? (Y/N) " %a 1 1 %a
$caps %a
If $eq(%a,"Y")
If Exists scripta.sub
Erase scripta.sub
EndIf
Rename scripta.sss *.sub
If Error
Message "Failed to rename SCRIPTA.SSS to SCRIPTA.SUB.^M^J^M^J"
Else
Message "Sample Abbreviations File installed successfully.^M^J^M^J"
EndIf
Elsif $ne(%a,"N")
%done := FALSE
EndIf
EndWhile
Message "Scripta installation complete.^M^J"
Message "Press a key when ready.^M^J^M^J"
CurOff
GetKey %a %b
Message "Bye."